import request from "@/utils/request";
import { PRODUCE, INDEX } from "@/config/baseUrl";

// 班次人员值班情况
export function getUserDutyInfo(params) {
  return request({
    url: PRODUCE + "/handover/groupProduceLog/queryUserDutyInfo",
    method: "get",
    params,
  });
}

// 设备情况
export function getEquipIndexBoard(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryIndexBoard",
    method: "get",
    params,
  });
}

// 注塑生产情况
export function queryInjectProductCondition(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryInjectProductCondition",
    method: "get",
    params,
  });
}

// 注塑产线电耗
export function queryPowerConsumption(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryPowerConsumption",
    method: "get",
    params,
  });
}

// 注塑机时间段产量
export function queryTimePeriodYield(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryTimePeriodYield",
    method: "get",
    params,
  });
}

// 注塑机月度累计情况
export function queryConsumptionInfo(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryConsumptionInfo",
    method: "get",
    params,
  });
}

// 设备停机
export function queryEquipmentOffInfo(params) {
  return request({
    url: INDEX + "/def/indexConfig/queryEquipmentOffInfo",
    method: "get",
    params,
  });
}